import request from "@/utils/request";

// 发送验证码
export const getCode = (data) => {
    return request({
        url: '/get/code',
        method: 'post',
        data
    })
};

//注册用户
export const userAuthentication = (data) => {
    return request.post("/user/authentication", data);
};

//登录
export const login = (data) => {
    return request.post("/login", data);
};

//权限管理列表
export const authAdmin = (params) => {
    return request.get("/auth/admin", { params });
};